package com.intramirror.product.mapper;

import com.intramirror.product.entity.AggregateRule;
import com.intramirror.product.entity.Spu;
import com.intramirror.product.entity.SpuAggregateLog;
import com.intramirror.product.entity.SpuInexactProduct;
import java.util.List;
import java.util.Map;

/**
 * Created on 2018/1/26.
 * @author 123
 */
public interface AggregateMapper {

    List<AggregateRule> getAllAggregateRule();

    void recordSpuAggregateLog(SpuAggregateLog spuAggregateLog);

    void addSpu(Spu spu);

    void updateSpu(Spu spu);

    List<Map<String, Object>> findSpuByDesignerIdAndColorCode(Spu spu);

    void insertSpuInexactProduct(SpuInexactProduct spuInexactProduct);
}
